#include <iostream>
using namespace std;

template <class ElemType> void Show(ElemType a[], int n) {
    for (int i = 0; i < n; i++) {
        cout << a[i] << "  ";
    }
}

int main() {
    int a[] = {1, 6, 9};
    Show(a, sizeof(a) / sizeof(int));
    Show(a, 2);
    cout << endl;

    return 0;
}
